import request from "../utils/request";

//查询
export let selectClazzApi=(name,begin,end,page,pageSize)=>
    request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);
//查询全部员工
export let selectEmpApi=()=>request.get('/emps/list')
//新增员工
export let addClazzApi=(clazz)=>request.post('/clazzs',clazz)
//查询回显
export let getByIdApi=(id)=>{return request.get(`/clazzs/${id}`)};
//修改员工信息
export let updateApi=(clazz)=>{return request.put('/clazzs',clazz)};
//批量删除员工
export let deleteByIdApi=(id)=>{return request.delete(`/clazzs/${id}`)};